import request from '@/utils/request'

// 查询溢出金额列表
export function listOverflow(query) {
    return request({
        url: '/bizsys/overflow/list',
        method: 'get',
        params: query
    })
}

// 查询溢出金额详细
export function getOverflow(id) {
    return request({
        url: '/bizsys/overflow/' + id,
        method: 'get'
    })
}

// 新增溢出金额
export function addOverflow(data) {
    return request({
        url: '/bizsys/overflow',
        method: 'post',
        data: data
    })
}

// 修改溢出金额
export function updateOverflow(data) {
    return request({
        url: '/bizsys/overflow',
        method: 'put',
        data: data
    })
}

// 删除溢出金额
export function delOverflow(id) {
    return request({
        url: '/bizsys/overflow/' + id,
        method: 'delete'
    })
}

// 导出溢出金额
export function exportOverflow(query) {
    return request({
        url: '/bizsys/overflow/export',
        method: 'get',
        params: query
    })
}